﻿using System;
using System.Runtime.InteropServices;

namespace Ioacp.Irisking
{
    /// <summary>
    /// Ty.Client回调数据结构
    /// </summary>
    [Serializable]
    [StructLayout(LayoutKind.Sequential)]
    public class TyPersonRecog
    {
        /// <summary>
        /// 识别记录序列号
        /// </summary>
        [MarshalAs(UnmanagedType.I4)]
        public int recog_id;
        /// <summary>
        /// 设备标志，每台惟一
        /// </summary>
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
        public string dev_sn;
        /// <summary>
        /// 人员工号
        /// </summary>
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
        public string work_sn;
        /// <summary>
        /// 识别时间
        /// </summary>
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
        public string recog_time;
        /// <summary>
        /// 人员Id，人员的唯一标志
        /// </summary>
        [MarshalAs(UnmanagedType.I4)]
        public int person_id;
        /// <summary>
        /// 人员姓名
        /// </summary>
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
        public string name;
    }
}